//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopDispatchExpress, MinishopDispatchExpressResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopDispatchExpressList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopDispatchExpressResponse>(`/uctoo/minishop_dispatch_express/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopDispatchExpress = async (id: string) => {
  return requestClient.get<MinishopDispatchExpress>(`/uctoo/minishop_dispatch_express/${id}`);
};

export const adductooMinishopDispatchExpress = async (data: Partial<MinishopDispatchExpress>) => {
  return requestClient.post<MinishopDispatchExpress>('/uctoo/minishop_dispatch_express/add', data);
};

export const edituctooMinishopDispatchExpress = async (data: Partial<MinishopDispatchExpress>) => {
  return requestClient.post<MinishopDispatchExpress>('/uctoo/minishop_dispatch_express/edit', data);
};

export const deleteuctooMinishopDispatchExpress = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_dispatch_express/del', { id });
};
